/*
 *接口编写处...
*如果接口需要做Action的权限验证，请在Action上使用属性
*如: [ApiActionPermission("Month_Asses",Enums.ActionPermissionOptions.Search)]
 */
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Http;
using VOL.Entity.DomainModels;
using VOL.Dhj.IServices;

namespace VOL.Dhj.Controllers
{
    public class Person
    {
        public int value2 { get; set; }
    }
    public partial class Month_AssesController
    {
        private readonly IMonth_AssesService _service;//访问业务代码
        private readonly IHttpContextAccessor _httpContextAccessor;

        [ActivatorUtilitiesConstructor]
        public Month_AssesController(
            IMonth_AssesService service,
            IHttpContextAccessor httpContextAccessor
        )
        : base(service)
        {
            _service = service;
            _httpContextAccessor = httpContextAccessor;
        }

        [Route("MonthlyAttendance"), HttpGet]
        public IActionResult MonthlyAttendance(string value2)
        {                        
            try
            {

                _service.DailyUpdates(value2);              

                return Json("更新成功");

            }
            catch (Exception ex)
            {
                return Json(ex.Message);
            }
            
        }            
}
}
